Optimize bool variable last_point_ok