Domain-Aware Fine-Tuning of Foundation Models