Ensure that CacheKey is serializable across JVMs for entities with a composite key.