Speedup and clean up operation optimization.