Improve cache performance for subtyping.