return reference to cache instead of copying the mask

BUG=437128

Review URL: https://codereview.chromium.org/889303005
4 files changed