Improve refreshing of packages at startup.