RavenDB-2948 High memory usage