Add --use-cache mode for faster builds

[#75617248]