If you know ahead of time that you'll be needing a cab, consider using a cab-sharing service. They'll hook you up with someone else heading in the same direction at the same time, and you can share the fare.
To learn more about cab-sharing services in NYC, go here.