Does it make sense? Wouldn't it be enough to use `AtomicReference` ?