Much faster method for getting Metadata of a class

Instead of looking for the right class after getting the metadata of all classes, just get the metadata of the given class.