Optimize static memory read/writes in jit as well.

Like the arm jit does.