```
public class EntityUtils
{
    private static final Map<String, Map<String, String>> searchMap = new HashMap<>();

    private static Map<String, String> getSearchablePathMap(String key)
    {
        synchronized(searchMap)
        {
            Map<String, String> pathMap = searchMap.get(key);
            if(pathMap != null) return pathMap;

            pathMap = new HashMap<>();
            pathMap.put(..., ...);
            ...
            // heavy map population operations
            ...

            pathMap = Collections.unmodifiableMap(pathMap);

            searchMap.put(key, pathMap);
        }

        return pathMap;
    }
}

```

Map entries will never be removed.

Cannot use `ConcurrentHashMap.putIfAbsent()` because of heavy population.

Can you suggest performance improvements to avoid synchronization when `key` already esists?