gpg: Prepare some key cleaning function for use with secret key packets.