reverting back to the invertedindexsimplebatch + memory tweaks + performance testing