Storing pointer to path data instead of index. As per memononen's feedback.