Optimized macro assembly