Use collection.concurrent.TrieMap instead of Map.