Faster average computations with aggregate