BUG: if grouping over chunks read all in and group.

Caches result and reuses