Metaclass for caching & skeleton ref object