Alternatives to a classic DIP switch
You could use a SIP switch instead of a DIP. The saving in board area would give you the space for your I2C interface (or a simpler interface like a shift register with input latch):



The picture shows it horizontal but it actually mounts vertically.