[MacPlatform] Refactored Keychain to reuse code