Ah yeah this changes things. You almost certainly want to use Registry, which will ensure that individual values are tied to the life cycle of the process.
Registry is backed by :ets
, which is a very high performance key value store that also enables concurrent reads / writes.