Create a RECORD_LAYER structure and move read_ahead into it.