WIP: trying to find a problem that leads to a system crash under memory pressure. cjk, proper logging, batch byte size cap