Speeding up merge with caching and optimization settings>