Limit reading from RAM to the SRAM Size