In optimize, save best params.