For anything I’m going to paint, I use paintable latex caulking, Alex brand. About $1.50 a tube, works great for gaps too like crown mouldings on uneven surfaces.

CHRIS, Charlottetown PEI Canada. Anytime you can repurpose, reuse, or recycle, everyone wins!