If you store just the final minimal parameters (res.minimizer, or res), then you have everything to recreate the solution.