We're only saving state once per batch, not once per id, so this should be fine.