I'll be honest, I didn't find the steamed hams joke that funny. Reason why is it's because it's just the same joke they did before. The time is past, it just felt played out, like they were doing some lame call back. It only works the first time.
The first instance of that joke was in the classroom where Ralph says "what's a battle?" The scene is funny because it's this totally bizarre one off conversation. But when you try to do it again it looks too forced.
Despite the millions of times I've seen it referenced, I actually have a hard time ever remembering what the steamed ham scene even is. I remember it (again) since it was posted in the OP, but somehow my brain has a hard time really retaining it.