security: In MemoryPrivateKeyStorage, use non-generic HashMap for compatibility with older Java versions.