Slightly optimize splitting data