Compute min/max on demand in gdal provider