Protein-based biomaterials for enhanced stability and expanded function