In a large bowl, beat the cream cheese and sugar together until smooth and creamy.
Add the eggs one at a time, mixing thoroughly after each addition.
Stir in the heavy cream, vanilla extract (if using), and salt. Mix until smooth.
Sift in the flour and gently fold it into the batter until no lumps remain.