Updating to new Connection API and caching AST on QL.