Improve/fix sharedCacheKeyPrefix generation