Nit: I find these callbacks a bit ugly, how about:
0diff --git a/src/test/fuzz/utxo_snapshot.cpp b/src/test/fuzz/utxo_snapshot.cpp
1index 0b4e0d183a..a30ac53f97 100644
2--- a/src/test/fuzz/utxo_snapshot.cpp
3+++ b/src/test/fuzz/utxo_snapshot.cpp
4@@ -54,0 +55 @@ void initialize_chain()
5+ .min_validation_cache = true,
6diff --git a/src/test/util/setup_common.cpp b/src/test/util/setup_common.cpp
7index cf47d16faf..62ff61b227 100644
8--- a/src/test/util/setup_common.cpp
9+++ b/src/test/util/setup_common.cpp
10@@ -247 +247 @@ ChainTestingSetup::ChainTestingSetup(const ChainType chainType, TestOpts opts)
11- m_make_chainman = [this, &chainparams] {
12+ m_make_chainman = [this, &chainparams, opts] {
13@@ -249 +249 @@ ChainTestingSetup::ChainTestingSetup(const ChainType chainType, TestOpts opts)
14- const ChainstateManager::Options chainman_opts{
15+ ChainstateManager::Options chainman_opts{
16@@ -256,0 +257,4 @@ ChainTestingSetup::ChainTestingSetup(const ChainType chainType, TestOpts opts)
17+ if (opts.min_validation_cache) {
18+ chainman_opts.script_execution_cache_bytes = 0;
19+ chainman_opts.signature_cache_bytes = 0;
20+ }
21diff --git a/src/test/util/setup_common.h b/src/test/util/setup_common.h
22index 7d69551516..9ff2c5978e 100644
23--- a/src/test/util/setup_common.h
24+++ b/src/test/util/setup_common.h
25@@ -57,0 +58 @@ struct TestOpts {
26+ bool min_validation_cache{false}