Experimenting with a ConcurrentHashMap rather than an atom.
The atom locks the entire hash on update. The ConcurrentHashMap locks on buckets. So ConcurrentHashMap would have better performance on multiple error updates.
Use concurrent-map