Adding authentication cache.
Merge pull request #882 from emmanuel-keller/1.5

Adding authentication cache.