Fixes cache key generation by using late static binding.