Revert "CB-4976 - dont use cache for local custom lib"

This reverts commit de94f31c4e47a4318c7c095b69ac1504ed0e4fe7.