Fix slow wallet scanning in production
Allow regenerating keys for inconsistent account records
Improve syncing of local wallet accounts with blockchain