I think if we put this into a function like `_getAggregateCacheKeysForAggregateKeys`, we can use it for both this case and the other one that does the same logic.