cache maybe-class, major speedup