Use another approach for getting which entities to update.