Risk based approach for procedures' optimization