Why is that? Couldn't you keep php running for the lambda lifetime? That way only when the lambda cold starts there would be no cache.
Seems like other people have had this idea in the past too!
https://forums.aws.amazon.com/message.jspa?messageID=624889
Are there any workarounds allowing something similar?