CC-5555 : Implement simple caching for preferences

cache key creation change.