fix cardinality aggregator caching

Can you make a comment in the code indicating that it is for the cache key?