Avoiding creation of an unnecessary slice