Adds feature to discard histories for RTOs and the expand operator, and to discard copy/swap buffers.