Optimize webworker.