Much faster writetable implementation