cache keys to read them only once from the hard disc

cache key so that we read them only once to gain some performance improvements.

Need to be testes for stuff like recovery to make sure that we don't reuse the old (cached) key in some situations.

fix: https://github.com/owncloud/core/issues/12959