[setup] Optimize setup.