Add option to disable ast caching