add an instance cache for is(something) calls