That is a damn large XML file to be processing. Maybe it's time to move all of that data to a database.