Updates optimizer stats