Revert "Revert "use cache resource""

This reverts commit 2a93069cb2502f78652684e333c3db119f40fdeb.