Don't constantly allocate and free hsFunPtrs since that's very expensive