Fixing createCacheInstance