optimized wire protocol