Use class swizzling as an optimization.