gh-91117: Ensure integer mod and pow operations use cached small ints (GH-31843)

3 files changed