At scale, document AI becomes an economics problem as much as a technical one.