cache spec-to-phrase mapping
adding ‘chain’ param for debugging hp,hpcl,hlcp,hpcp and hpcl.