Currently when encrypted wallets are unlocked the encrypted private keys are checked against the public key by deriving the public key.
The existing process is robust but very expensive and cannot detect wallet corruption on wallet load.
Adding H(pubkey, cryptedprivkey) to the wallet entry allows for rapid verification and corruption detection on wallet load.