Removed unnecessary memory access