Uncertainty-Aware and Data-Efficient Fine-Tuning and Application of Foundation Models