Used a more lightweight way to use a temporary value in the computation of the transform result.