Make contextual checks independent from mapBlockIndex