copy improvements from memread to memread128

Change-Id: I0c64d1301302d677197c370068472ba746d7ed20