Some cleanups that i noticed would be desirable while working on #23074 and #22539, which are intentionally not based on it. Mainly simplifications and a slight speedup.
- Use a single tx to create the
2**9
coins instead of creating2**8
2-outputs transactions - Use a single P2SH script
- Avoid the use of non-standard transactions
- Misc style nits (happy to take more)