I'm not sure what you could do to optimize this behavior other than to limit the number of products in the table. The query just gets the information from the database, so if there's a lot of entries, the query will take a while to load.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.