use single formatter per thread

Every time the H2 plugin would format dates new SimpeDateFormatter objects would be created causing much overhead. This patch makes the plugin use a single formatter object per thread.