In a large bowl, beat the cream cheese, butter, vanilla extract, and salt with a handheld mixer on medium speed until the mixture becomes smooth and fluffy, about 1 minute. Scrape down the sides of the bowl with a rubber spatula. Add the confectioners’ sugar and mix on low speed until combined, about 30 seconds. Increase the speed to medium and beat until smooth, scraping the bowl halfway through, about 1 minute. Scrape the sides again, add the coconut flakes, and mix on low speed until incorporated, about 30 seconds. Refrigerate the mixture for about 30 minutes until firm.