Before:
```
wallet_abandonconflict.py | ✓ Passed | 5 s
wallet_balance.py | ✓ Passed | 8 s
wallet_balance.py --descriptors | ✓ Passed | 9 s
wallet_basic.py | ✓ Passed | 18 s
wallet_groups.py | ✓ Passed | 72 s
wallet_hd.py | ✓ Passed | 7 s
wallet_hd.py --descriptors | ✓ Passed | 7 s
wallet_importdescriptors.py | ✓ Passed | 5 s
wallet_listreceivedby.py | ✓ Passed | 18 s
wallet_listsinceblock.py | ✓ Passed | 5 s
wallet_listsinceblock.py --descriptors | ✓ Passed | 9 s
```
After:
```
wallet_abandonconflict.py | ✓ Passed | 5 s
wallet_balance.py | ✓ Passed | 6 s
wallet_balance.py --descriptors | ✓ Passed | 6 s
wallet_basic.py | ✓ Passed | 17 s
wallet_groups.py | ✓ Passed | 9 s
wallet_hd.py | ✓ Passed | 6 s
wallet_hd.py --descriptors | ✓ Passed | 7 s
wallet_importdescriptors.py | ✓ Passed | 5 s
wallet_listreceivedby.py | ✓ Passed | 6 s
wallet_listsinceblock.py | ✓ Passed | 5 s
wallet_listsinceblock.py --descriptors | ✓ Passed | 6 s
```
Note the significant speedup for `wallet_groups.py` and `wallet_listreceivedby.py`. For slower test machines, the gain can also be more significant for the other tests.
This is a backport of core#25865