Minimizing redundant iterations when setting a data store record via `data.batch()`