mapping values

but they would be declared over and over

So? It doesn't matter. Make them static, so that doesn't happen, if it makes you feel better. (It won't make the Arduino feel any better.)