Should be done with `HAS_PKEY_CTX` too?