batch updating entries.   this improved performance by about 20x.