Remove unnecessarily included public keys.