Mitch McClaren's optimization of inner autoco loop - 2x faster