How to automatically delete ended listing?

I like this idea, but if an ended listing is moved to the trash, I would not want the old data completely deleted. Our GS6 got really slow last year, so we cleared out 10,000+ ended listings to speed things back up. What we later discovered was that the history data disappeared as well. Even though we had an active relisting of the item, the history of dates of previous times it had been listed was removed. While it may seem trivial, this information is helpful to have access to when deciding to discount an item or not based on for how long it has been on eBay.