I knew dozens of math and engineering majors who took Physics 2 and none of them cheated, at least not on the level of programming a cheat sheet into their calculator for an exam, which at the absolute most lenient would be an automatic F in the course, and probably an expulsion too.

I would assume every professor would make people clear the memory from their calculators just in case to prevent this kind of cheating, so it's not a very clever way to cheat anyway.