This is a terminal feature where pastes will be "bracketed" in \e\[200~ and \e\[201~. It is more of a "security" measure (since particularly copying from a browser can copy text different from what the user sees, which might be malicious) than a performance optimization. Work towards #967.