It is useless since host OS cache is used anyway. It also slows down coverage collection because of many taken branches. Specialized tests should be written to test disk cache specifically.
Also, adjust disk cache size and move set_eflags_tf() to trace_lbr.c.
Use __stdcall__ attribute for this and declare few disk and media related structures.