Convert dataset to pytorch dataloader

Caching only happens with datastes on disk. On the other hand, nothing is written on disk or cached for datasets in streaming mode