Resolves cache tests failing if the directory length is longer than 64

...ers

Partially resolves https://github.com/owncloud/core/issues/10991 failure 2
No, this should not be done by the storage implementation. It's done in the Cache class.
I'd rather expect `getById()` to do the md5-ing.