replace per-node std::vector with indices to single memory block