Improve media search performace if file ID is available