Minor performance improvements in the pyramid maintainance trigger

Don't use ST_Buffer to compute grid cells, use USING syntax to
avoid multiple casts to text, do ST_SnapToGrid only once, with
the higher resolution.