Use a scratch variable to relieve memory pressure.