Optimised table serialization