Is there a reason not to just use an `ArrayBuffer` here and add some synchronization around resetting and reading it? This `AtomicReference` thing is a little bit clunky and I don't see any performance argument for it.