Improve/fix sharedCacheKeyPrefix generation

Wait, where does this variable come from? ;-) It's to late. I'm going to bed now. What about you?