Instead, keep the config around
@nicolasfella this should fix the heap-use-after-free
heap-use-after-free