The thing to look for is a record that begins with mkey
Thanks - yes I have that. I was investigating the encryption bug on 0.4. It stored keys in plaintext (even for encrypted wallets) in the wallet.dat, logs and __db00X files per Gavin here: https://bitcointalksearch.org/topic/m.616068
We have had success finding them in the wallet.dat however the logs and __db files have been a bit more difficult to process.
I was wondering if the master key got mixed up in this db issue as well. It would provide an alternate means of unlocking the private keys as in my case half the wallet was floating around in plaintext but my addr with coins on it happened to be in the other half. =)