Evolution of protein cores