I've been using RamDisk98 for decades. Versions up through about 3 included source code, but I've never been able to locate any of those. If @jaclaz could find one, that would be the source to use and I'd be in for modifying it. We could reduce the memory footprint to only hold the tables, not the data clusters, then read/write the data from/to the image on disk on-demand.