Changed skiplist to hashset in metaclass cache