Replying only to the part that's directed at me...Just curious, may I know what format and bit rate are you using for your music files to have 40k tracks.
Here's my music library.
38,384 tracks in FLAC.
1,762 tracks in mp3 and m4a.
For the tracks in FLAC format, I'm converting with Foobar and QAAC to AAC 160 Kbps for portable usage. All of those FLAC albums are scanned with ReplayGain album mode, then applied with a +3 db gain and Advanced Limiter in the DSP chain for conversion.