Miscellaneous efficiency improvements, and extend read_sectors to