Load all mimetypes in one go
Make mimetypes static. Jenkis will be happy
Check result only once
Merge pull request #5123 from owncloud/cache_mimetypes

Load all mimetypes in one go