This is not concurrent. A ConcurrentHashMap would probably be safer.