In the line `xr_dataset: xr_Dataset = to_xarray_dataset(mdio_ds=mdio_ds)` we have an eager memory allocation.