is the idea of storing the variable using SRAM ridiculous?
No.
Can I use other variables to include the lines...within the scope of variable n?
No idea what this means. As I pointed out earlier, n is a lousy name. It implies nothing about its contents.