Improve media migration 005_media_filesize for many media case