Compensate for memory peak at flush time
Compensate for memory peak at flush time

Github-Pull: #10126
Rebased-From: 7228ce853de5670d559d752f04a7db79578990ea

mincoin-project/mincoin,goldcoin/Goldcoin-GLD,ftrader-bitcoinabc/bitcoin-abc,xieta/mincoin,daliwangi/bitcoin,Bitcoin-ABC/bitcoin-abc,BitcoinHardfork/bitcoin,cculianu/bitcoin-abc,BigBlueCeiling/augmentacoin,dogecoin/dogecoin,dpayne9000/Rubixz-Coin,zcoinofficial/zcoin,patricklodder/dogecoin,Rav3nPL/PLNcoin,argentumproject/argentum,cculianu/bitcoin-abc,tecnovert/particl-core,matlongsi/micropay,BitcoinPOW/BitcoinPOW,segsignal/bitcoin,tecnovert/particl-core,kallewoof/elements,ftrader-bitcoinabc/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,ftrader-bitcoinabc/bitcoin-abc,ShadowMyst/creativechain-core,HashUnlimited/Einsteinium-Unlimited,ftrader-bitcoinabc/bitcoin-abc,BitcoinPOW/BitcoinPOW,argentumproject/argentum,myriadcoin/myriadcoin,multicoins/marycoin,argentumproject/argentum,kallewoof/elements,zcoinofficial/zcoin,segsignal/bitcoin,multicoins/marycoin,psionin/smartcoin,dogecoin/dogecoin,core-bitcoin/bitcoin,ShadowMyst/creativechain-core,Bitcoin-ABC/bitcoin-abc,daliwangi/bitcoin,myriadteam/myriadcoin,core-bitcoin/bitcoin,myriadcoin/myriadcoin,kallewoof/elements,dpayne9000/Rubixz-Coin,particl/particl-core,Bitcoin-ABC/bitcoin-abc,patricklodder/dogecoin,cculianu/bitcoin-abc,senadmd/coinmarketwatch,HashUnlimited/Einsteinium-Unlimited,EntropyFactory/creativechain-core,UASF/bitcoin,btc1/bitcoin,BitcoinPOW/BitcoinPOW,goldcoin/Goldcoin-GLD,tdudz/elements,myriadteam/myriadcoin,myriadcoin/myriadcoin,BigBlueCeiling/augmentacoin,dogecoin/dogecoin,Bitcoin-ABC/bitcoin-abc,BigBlueCeiling/augmentacoin,Bitcoin-ABC/bitcoin-abc,myriadcoin/myriadcoin,particl/particl-core,tdudz/elements,dpayne9000/Rubixz-Coin,xieta/mincoin,tdudz/elements,HashUnlimited/Einsteinium-Unlimited,mincoin-project/mincoin,goldcoin/Goldcoin-GLD,Rav3nPL/PLNcoin,plncoin/PLNcoin_Core,dpayne9000/Rubixz-Coin,ftrader-bitcoinabc/bitcoin-abc,tdudz/elements,BitcoinHardfork/bitcoin,BitcoinHardfork/bitcoin,Rav3nPL/PLNcoin,BitcoinHardfork/bitcoin,HashUnlimited/Einsteinium-Unlimited,plncoin/PLNcoin_Core,mincoin-project/mincoin,senadmd/coinmarketwatch,plncoin/PLNcoin_Core,myriadteam/myriadcoin,goldcoin/Goldcoin-GLD,HashUnlimited/Einsteinium-Unlimited,patricklodder/dogecoin,Bitcoin-ABC/bitcoin-abc,daliwangi/bitcoin,patricklodder/dogecoin,multicoins/marycoin,EntropyFactory/creativechain-core,particl/particl-core,elecoin/elecoin,segsignal/bitcoin,psionin/smartcoin,myriadteam/myriadcoin,cculianu/bitcoin-abc,particl/particl-core,goldcoin/goldcoin,argentumproject/argentum,EntropyFactory/creativechain-core,BigBlueCeiling/augmentacoin,Rav3nPL/PLNcoin,senadmd/coinmarketwatch,zcoinofficial/zcoin,EntropyFactory/creativechain-core,cculianu/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,daliwangi/bitcoin,matlongsi/micropay,goldcoin/goldcoin,BigBlueCeiling/augmentacoin,argentumproject/argentum,multicoins/marycoin,kallewoof/elements,myriadcoin/myriadcoin,particl/particl-core,zcoinofficial/zcoin,ShadowMyst/creativechain-core,Rav3nPL/PLNcoin,elecoin/elecoin,btc1/bitcoin,ftrader-bitcoinabc/bitcoin-abc,particl/particl-core,BitcoinPOW/BitcoinPOW,argentumproject/argentum,dogecoin/dogecoin,segsignal/bitcoin,ShadowMyst/creativechain-core,psionin/smartcoin,goldcoin/goldcoin,mincoin-project/mincoin,tecnovert/particl-core,dogecoin/dogecoin,zcoinofficial/zcoin,xieta/mincoin,zcoinofficial/zcoin,ftrader-bitcoinabc/bitcoin-abc,goldcoin/Goldcoin-GLD,UASF/bitcoin,UASF/bitcoin,daliwangi/bitcoin,psionin/smartcoin,matlongsi/micropay,BitcoinPOW/BitcoinPOW,tecnovert/particl-core,xieta/mincoin,senadmd/coinmarketwatch,UASF/bitcoin,Bitcoin-ABC/bitcoin-abc,BitcoinHardfork/bitcoin,btc1/bitcoin,core-bitcoin/bitcoin,myriadteam/myriadcoin,elecoin/elecoin,psionin/smartcoin,cculianu/bitcoin-abc,plncoin/PLNcoin_Core,ftrader-bitcoinabc/bitcoin-abc,ShadowMyst/creativechain-core,Rav3nPL/PLNcoin,tdudz/elements,zcoinofficial/zcoin,matlongsi/micropay,elecoin/elecoin,ftrader-bitcoinabc/bitcoin-abc,myriadcoin/myriadcoin,kallewoof/elements,cculianu/bitcoin-abc,EntropyFactory/creativechain-core,Bitcoin-ABC/bitcoin-abc,senadmd/coinmarketwatch,BigBlueCeiling/augmentacoin,goldcoin/Goldcoin-GLD,elecoin/elecoin,ftrader-bitcoinabc/bitcoin-abc,xieta/mincoin,multicoins/marycoin,Bitcoin-ABC/bitcoin-abc,tecnovert/particl-core,mincoin-project/mincoin,argentumproject/argentum,segsignal/bitcoin,plncoin/PLNcoin_Core,goldcoin/goldcoin,core-bitcoin/bitcoin,UASF/bitcoin,multicoins/marycoin,goldcoin/goldcoin,core-bitcoin/bitcoin,zcoinofficial/zcoin,matlongsi/micropay,tdudz/elements,senadmd/coinmarketwatch,xieta/mincoin,dogecoin/dogecoin,btc1/bitcoin,kallewoof/elements,patricklodder/dogecoin,Bitcoin-ABC/bitcoin-abc,btc1/bitcoin,elecoin/elecoin,ShadowMyst/creativechain-core,dpayne9000/Rubixz-Coin,btc1/bitcoin,cculianu/bitcoin-abc,BitcoinHardfork/bitcoin,matlongsi/micropay,plncoin/PLNcoin_Core,Bitcoin-ABC/bitcoin-abc,EntropyFactory/creativechain-core,dpayne9000/Rubixz-Coin,segsignal/bitcoin,goldcoin/goldcoin,zcoinofficial/zcoin,myriadteam/myriadcoin,mincoin-project/mincoin,zcoinofficial/zcoin,UASF/bitcoin,BitcoinPOW/BitcoinPOW,core-bitcoin/bitcoin,psionin/smartcoin,daliwangi/bitcoin,HashUnlimited/Einsteinium-Unlimited,tecnovert/particl-core