Speed up recursive rules