It's proving extremely slow in prod. I assume the `with` joins are running sequentially and will need to be converted to regular joins