Tech may be tough on a day-to-day basis, but long-term it yields rewards, says Jim Cramer