Do your persistence elsewhere, probably in an API wrapped around RDS.
SSM or other secrets needing decryption and fetching at runtime should use the AWS recommended method of storing this data in the global scope (at least that's how it works in Node), but this should feel icky because it is icky.
Mixing statefulness into things that are inherently intended to be stateless probably indicates you've chosen the wrong tool for the job.