moved signature cache into script evaluation