perf: remove unneeded class indirection for dynamic pool in worker