EDI Slowness when processing Demand Entry

We have a situation where the Demand Entry portion of EDI is taking up to 3 minutes to process a new order line on 905.700. From the trace logs it appears that the most of this time is during the write.p process where it is trying to update the partqty table, which contains around 68000 records. If we make a change on the order line, Epicor updates the partqty table immediately. It appears the issue then is within the Demand Entry update but we are unable to look at the source code to figure out what is causing the processing delay

Anyone else experiencing this or, anyone else have experience with using the Database Purge of Demand records and whether that may help?