Are my arrays stored in sram or in Flash?
It's stored in both the FLASH and SRAM because it's initialized array. To store in FLASH only you need use PROGMEM attribute.

const unsigned PROGMEM char g1[]= ...


You cannot access directly but using memcpy_P() function.