S3 utilities in XQuery for MarkLogic