only make at most one copy during encoding