Time out dependencies cache, and use sha512 rather than sha1