Fixed duplication issue in cache key generator.