add getSecretKeyType method to CachedPublicKeyRing
work on passphrase caching, make use of cached SecretKeyType data (WIP!)