Rewrite the grid query so that the processing is done with a minimal number of fields, allowing it to happen in memory regardless of the number of fields. This means that the fields must be pulled in later however, and so requires a unique index on the _id field (otherwise this is slower than the previous approach)