optimize the memory overhead of sparse index.