Jonathan Wilkes' implementation of scalar bbox caching to improve performance