Add invalidation timeout to cache

Update for changes in: https://github.com/leapcode/keymanager/pull/52