Make config an instance class variable for thread safety