optimized c sharp client