Cache raster object.