Bugfix: The optimize timer measured total time after first optimize instead of only the real optimize times