Boost query performance for aggregation