My allegedly more complicated VPS stack needs an afternoon of attention every two years when a new Debian major release is necessary, and costs have been predictable for 15 years, no matter what happened traffic wise.
If infrequent you could cache the generated page and not query D1 for subsequent requests at all.