Move CWalletTx::IsConfirmed to wallet.cpp
Improve CWalletTx::IsConfirmed performance.

Build a cache of already processed transactions is sufficient to fix this.