Apply optimization for Lucene. Add random update benchmark.