Added faster version of prepare_conditionals_for_diagnosed_conditions