Make it possible to calculate the group at once and use the summaries when loadonce and jsonstring and xmlstring are true.