Revert "Added caching of results from isValid transition."

This reverts commit a078398045ade237dccbaa516b58d9df1f859fea.

This is because it uses too much memory. Change needs to only look at local possible transitions, not all possible transitions.