1 GB of ram is quite small.I think it is worth to try creating an index on a combination ofcolumns(lat, lng).So that Bitmap Heap Scan would be omitted.