Merge pull request #5726 from mimimi085181/minimal-tmem-cache-emulation Implement minimal emulation of TMEM caching