Reduce phantomJS driver overhead in thread loop