Added interceptor that optimizes serialization