Don't redownload optional dependencies if we can avoid it.