You can try
at the top of your script. 0 = forever.
and just a thought...
Depending on your query and what type of data you are pulling, can you precompile some of the xml data that you want? As in, run the queries and store the data, and then a user can just request said data.