A few optimizations for mocha