softwires: avoid unnecessary allocations