digest: remove unused dependencies; optimize load a bit