Improve caching of calledFromClass methods to avoid repeated calls to the classloader for classes not found