Add AST caching for subject matcher

At least this dramatically speeds up unit tests. And this is a good
thing.
Adjust flay score