cascache: Use local CAS for contains_files

Currently `CASCache.contains_files()` polls the remote CAS rather than
the local one. This leads to the function not doing what it says it
does, and also causes excessive polling of the remote CAS every time we
want to check whether an artifact is cached.
1 file changed