Try this, if the script is set at compile time, and not changed:
Instead of
Code:
unsigned char someArray[]....
use
Code:
rom const unsigned char someArray[]...
And you shouldn't have that problem anymore.. if that doesn't help, search for "lookup tables"