Move ensureEstimatedStats() after index wiping to ensure everything is cleaned up once the index is removed