Fix to issue where different datasets might have different sized caches during rasterio operations.