add buffering of SPARQL statements