Avoid using useMemo for functions that are rarely used, as the memoization overhead may not provide significant benefits in such cases.