move cacheMap (for tests)