optimize insert_multiple