Implement building with advanced optimization