I used the same method as for the deduping version, without giving it a huge amount of thought. I think in general Roxie assumes that memory is plentiful and speed is more important, though I don't know if the mask is really sufficiently faster to make a detectable difference.

@mckellyln Any views?