Optimize AndP by only putting ltr to locations where it's needed.