Cache instanceof

Cache on the class so that any time any object of that class is checked
for instanceof, the check can be faster