Refactorings for caching any remote XML