Adding features to gridded dataset map balloons output file size and slows performance

You can crop the features to the bounds you care about How to show cropped geometries / features upon zoom.

Alternatively, you can use tiles instead.