Small performance improvement in gdal provider