Reuse global temporary variables if can.