Small optimisation when inserting rows