You could use data.forEach instead - it should in theory be much faster.