Add get_record method for single records

This is substantially faster for the case that you want only a single record.
Maybe 'wb' for Windows support.