Optimize statistical functions (grouby, count, sum and proportion) so they don't recompute from the whole data