Reduce calls to wfTimestampNow() by using temporary variable. Inspired by CR on r88278.