Prefer using collection.set when a full reset is unnecessary.