Added caching for RDF documents.