saved values to avoid repeat evaluation
Merge pull request #605 from mbarry02/transform_speed_up

saved values to avoid repeat evaluation