q4: Distributed aggregation for improved performance