Optimize explorer.cs

Optimize copyDowork procedure