Fast Calculations of Portfolio Credit Losses and Sensitivities