Add removal of loaded datasets after training/test merge to save memory