Expectation May Be Crucial To Encode Memory