Use tuple batch buffer in profiling logger

Gives us faster inserts and simpler code. Fixes #670