Adds secure default and fallback for cache key.