Fixes cache key generation bug, just as for the entity class earlier.