[UE5] How to cook a shadermap?

Hello!
Is there any tutorial in order to learn how to cook and load cache shadermap. I have seen this type of implementation in plugins like Niagara and OCIO but I don’t get the complete idea of the implementation.