Expose worker index if :with_worker_index is specified