4.2: Integrate caching into check_xml