Food for thought:
Raise the PWM frequency so you can use a smaller cap value... a buffer in between also reduce the load... smaller cap

Some PIC have DAC... 5 bits but workable

R2R network + PWM

R2R Network + DAC

External 8-12 bits DAC

And so forth