Generally not using XML will improve performance, try using
fastJSON[
^] for dataset serialization.
Not holding onto "huge" data will be the better way.
Try rethinking what you really need to store, other than the above we cannot help you with the little information you have provided.