Improve media search performace if file ID is available
Merge pull request #55 from heiiko/WP-1270

WP1270: Improve media search performace if file ID is available