Remove the memonly bool and follow our typical Add and Load pattern.
This is a backport of [[https://github.com/bitcoin/bitcoin/pull/19046 | core#19046]] [1/3]
https://github.com/bitcoin/bitcoin/pull/19046/commits/0122fbab4c340b23ae56173de6c5ab866ba25ab8