public void Put(IPersistentState ctx, string key)
 {
     byte[] buffer = Serialize();
     ctx.SetByteArray(key, buffer);
 }