use dumpprivkeys to efficiently dump private keys