+1 on @stdweird's remark, `keyring` could be anything, so this approach is (only slightly) better