Improve performance of column coloring:

1) cache the results of calling the formatter even if they are negative.
2) use compiled templates