Optimized tbl writer