improved external index by removing disk writes