Optimize the tools for generating prebuilt engine.