I wonder if you could use this approach to speed things up?
Bypass writing to the table all together.