Max-age for set of streams

Hi. Need an advice.
I have set of streams that need to be configured with “max-age” setting. There is no “create stream” action, i can’t set “max-age” when stream is being created. What would be the best approach to ensure that particulat set of streams will be having proper “max-age” setting?
The only solution that comes to my mind is to check/set max-age on every AppendToStream call, but it seems not very clever approach.

I have a dictionary of stream prefixes and lifespan. Every time I save something with expectedVersion = -1 I set max age on stream.