Optimize Image3D caching