in reply to I need speed

Have you ever tried the command "locate"? It does this very very well and you can easilly make your CGI script run it. I believe it is even available on Windows as part of the Cygwin package.