Remove redundant caching of archives

(without checksum)
fix running processes with closed stdin
Removed a bunch of redundant syscalls

'strace opam search xxx | wc -l' down from 18669 to 13895.
Just felt dirty to have the same 'stat' call 4 times in a row.