Saving classes hash table context and reinitializing it when trying to find first class with a classloader