Regarding redshirts, I imagine security and engineering crews dealing with violent individuals and exploding ship parts probably are more often in situations of imminent personal danger than a scientist reading an ancient codex or a yeoman recording files, much as a police officer, firefighter or soldier is more often in danger than a secretary, cook, or professor. Space and sci-fi evens the odds, but there's still a bigger risk to some roles than others.