More on optimization of autodiff