improve bulk insert performance