Optimization for serial inserts and mempool