small code readability improvement
TrackRecognitionHook: last_event clearing optimization
TrackRecognitionHook: last_event lookup optimization