Revert "Fix ArrayIndexOutOfBoundsException on SRAM"

This reverts commit 95ddcceeb299ed063d6d8719a7a9fb48d9674235.