Cited from Lukas words."The current solution is not ideal because of its bad performance impact.So basic idea to improve things is to avoid discarding every time someblocks are freed. and instead batching is together into bigger trims,which tends to be more effective."