memory read / write access optimization