RavenDB-2607 In memory indexing state optimization