Use opts as a global, to avoid cloning and passing the struct all over the code base.