allow query parsing caching global #4
refactor analyzer and query parse out to enable this