Well-chosen endowments can reduce tax on your investments