Efficiently serialises objects you know the contents of