Optimized asm instrumentation