Sounds like you need to use a database if your storing multiple files and that number of records.