Convert build process to an optimized one.