save optimization history