No need to copy the input over and over again as it is not modified.