tweak
Do cleaning in-place instead of a separate buffer.
remove clean-in-buffer code, no functionality change
Remove redundant HasVariables field. 82ms->80ms.
Remove redundant "skipped" variable. No functionality / perf change.
tweak; no change
tweak more; no change