PERF: optimize insert_columns

perf regression introduced in 1585aa4976ee492f05410b70014bad74cb7414b6