smarter delayed flush