Performance improvement modification

Hi,

Thanks for very nice utility. 

I have modified the code to store the extensions as keys and mime-types as values to increase the performance. It may increase the file size but performance is what I feel is important.

If you like it you can pull this small change.

Thanks.