Fixes and improvements recommended by @cheddar. Unique aggregator cache key. Hard coded max intermediate size for cardinality object.