optimization for thrift lib