Cache the result of the first transform in Transforms.

#287.