Revert "More memory efficient index sending"

This reverts commit 593f098276206aad9fed607c36020ced096a4867.