Don't reparse an RDF document every single time get_inferences is called.