Improved digest performance by adding caches to most used paths.