Use ISafeSerializationData to fix medium trust problems