Make metadata loading work without loading all classnames (which forces us to parse all XML files)