We keep some of our knives on a long, thin magnet above the kitchen sink. It's the same type of magnetic knife rack commonly used in professional kitchens, and it's also perfect for storing bakeware in the pantry. Take a look:
Oh wow, I'm so pleased! Charlie did a wonderful job of installing the magnets, and we were able to free up an entire shelf in the pantry. We bought the magnets at Ikea, and they cost $9 apiece -- totally worth it. Also, (according to Charlie) they were simple to install. If every inch of storage space matters where you live I highly recommend giving this a shot. The sound the pans make when the magnets suck them in is pretty cool as well.