Switch hashmaps to concurrent ones.