4.2: Simplify scripting layout, integrate caching in check_xml.sh