Dyke, William Hart, Sir, 7th Baronet, Sec of the Treasury