This can lead to incorrectness because the underlying ``HashMap`` is not thread-safe.