implement basic cache for grid transform lookup tables