If those 45000 files are in separated chunks you could try with separated repos, I don't see any other better way unfortunately.
Are the binaries necesary? Can you make an automated script to build them instead and just leave the sources?
It might be a good oportunity to clean that codebase :)
Good luck!