@ImogenBits I just wanted to highlight this comment again from the other thread
I would recommend adding this use case to that issue, given that performance of AST is a concern for you