Avoid reserving memory for vectors in Path