Aws AMI Optimization Pixelstreaming

Hello forum,

I have a small question. I am using Unreal with Pixel Streaming on the AWS servers.

Currently, when a new user accesses my website, I spin off a new instance from a new AWS AMI. The problem is that it takes too long (5 minutes) for Unreal to start on the new instance. Every time Unreal restarts on a new virtual machine, it needs to recompile all shaders and load them into cache from scratch.

Is there a way to store this data in the AWS AMI so that it doesn’t need to be compiled from scratch every time a new instance is spun off?

Thank you.