Efficient recycling of nutrients in modern and past hypersaline environments