Minor writer optimizations

This will make us write an empty column instead of the empty string for metrics_locator.

It will also use a singleton boolean instead of creating lots of strings for the insertedLocators cache.