using java.util.concurrent.ConcurrentHashMap with scala converters is more efficient.