Insert performance improvements