Add optimization to skip 2nd expansion when framing.