> I wonder whether there would be purpose-built hardware that could do the same more cheaply
Where are you imagining costy savings coming from? Custom anything is almost always vastly more expensive than using a standardised product.