Fixing the cache hashing with specialized template names