Change logging of remaining triples to use less memory.