Reduce optimizations via boiler + logic