Caching authenticator

Depends on #267