Your transformation does not include any random transforms, so it should be alright.
If your approach is working, you could also add the random augmentation later when reloading the data.
PS: In which foramt is the data stored at the moment? If Kaggle is using some image format with compression (e.g. JPG), your current approach might take more memory than the original dataset.