RAM optimization and clean up of sFLASH_write function

The RAM optimization frees 176 bytes by allocating the static expandedKey buffer on the stack. As you see, it was only used in one place. 

The sFLASH_Write change was just a little tidy up to make the source buffer `const` - since writing doesn't change that data.