We do not have unique ownership of the global state, it should be passed by immutable reference and handle its own interior thread-safety / mutability.
To fix this, you will run into the problem of requiring a mutable ExecutionCtx. This shouldn't be global state anyway and we should just create one for each array exporter.