Flush triples in smaller bundles. This is more efficient (in my very unscientific test) but more importantly, it's compatible with rdflib (which seems to have a problem parsing too large SPARQL expressions).