I’m not familiar with GIReplace. Could you explain what it is?
As for changing material between raster and cache, you could use RayTracingQualitySwitchReplace (support added in UE5-Main). It’s true that it also influences HWRT when surface cache is disabled, but the dream is that cache should be just a cache, and shouldn’t require any special material tinkering to make it work.