Avoid creating values array for the last row