Improved security of XQueryStartupTrigger