Improve performance of findConcreteSubclass for unit tests (cache results)