Improve recaching GHC and sandbox package DB
Improve install metadata handling