_PyType_LookupByVersion currently returns NULL for types such as int which has a fixed type version. This prevents the JIT from optimizing method loads on int to inline borrow. Since, the types has predefined version tags, assign_version_tag is never called on them so they are never added to the cache.
See PR for more details.
Linked PRs