Thanks for the info. I also found something that looks very interesting, it's an I2C controlled multplexer (MCP23017), and being I2C it will use even less pins. I do wonder about the performance compared to a 74HCT4067. I ordered some to see how they work.