Quickly simulate the results of your bizarre reduce functions with groupings