Bug #1001455 patch from mozilla,Remove some gradients to save memory

[bug number  ] 1001455
[root cause  ] Remove some gradients to save memory
[changes     ]
[side effects]
[self test   ] pass
[reviewers   ]
Merge pull request #18913 from leonazhao/bug1001455_v1.3t

Bug #1001455 patch from mozilla,Remove some gradients to save memory