More conservative caching in the CommutationChecker
(backport #13600)
#13677
+117
−31
CommutationChecker
(backport #13600)
#13677