Cost-Effective Hallucination Detection for LLMs