Much cleaner logic to expire the old flash data