The whole goal of a format like that is to contain all the requisite information about the disk and it, doesn't actually do that. Subchannel data? Intentionally bad CRCs? Funny offsets because you're using it for GD-ROMs? Nope fuck you, here's your cue file.
I'm not here to present any useful solution today but shit this should be a solved problem by now.