don't cache if the encryption is enabled, this can lead to problems during unit testing