EH: Sink computation of local PadMap variable into function that uses it

No functionality change.