Move shared data to class scope (don't pass into each worker thread).