Cache dependencies on CI servers; also make the build smaller if running on CI