adding some high-load safety to transaction flushing