[MOD] XQuery: performance tweaks