Only pay for block_record on sanity checking

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>