Remove usage of std::vector::data