This has never, not once crossed my mind. I've worked at two FAANG companies and I'm fairly certain that at least at Google they'd be able to tell you've exfiltrated some code, and even if they couldn't it's morally questionable to be doing that in the first place.
High risk, very low reward