Only tangentially related, but what's the point of a static class block? What problem does it solve that's not covered by either the class constructor or a static const? Doesn't it introduce a weird (stateful!) computation that's hard to reason about?
There's probably a use-case I'm missing, because intuitively I'd automatically classify it as bad a practice.
There's probably a use-case I'm missing, because intuitively I'd automatically classify it as bad a practice.