"I wrote one of the open source packages you use!"
"You make software used in my toaster!"
"Your office it two blocks from my house!"
When I was a junior, I wrote cover letters for every job. Now that I'm senior, I haven't written one in years and get more callbacks than ever before.
Still, one could argue that flirting w/ the company a bit at the point you make a first impression, possibly in a cover letter, is in your best interests. If someone needs you, they'll offer to pay what they need to. If someone wants you, they'll pay whatever it takes to retain you. Sometimes those numbers are the same. But if a company would be willing to go the extra mile to make you happy, and you give them no reason to feel that way, you're leaving money on the table.