Post-optimization cleanup.