optimized $setOnInsert