Optimize the prebuilt template of lua.