Simplify keychain code sample