Improve index building time by avoiding random inserts