Improves performace for sum, density, percentile, sample, etc.