Add/cache digests

closes #15.