Do you really need to use railgun directly in oder to read the prefetch files? I don't know how big these files can be, and if using railgun directly is really needed, but the best way to proceed if possible would be:

a) Read the file contents with the read_file method from the  Msf::Post::File mixin
b) Parse the contents in order to get the interesting information