Improve performance with early return.

When the TClass is found directly in the list, return early
to avoid the costly parsing of the class name.  This improve
performance in general and reduce lock contention (the lock
is released faster) in multi-thread environment.
Cache std::string's TClass