How do you optimize queries that use XML or JSON data?