for bug #251, use macro to define the fast cache and cond wait. 2.0.58