Optimizing Aggregator transformation