The Tim Cook era was a highly profitable one for Apple shareholders.