utils: avoid calling .slice() in PRF
state: don't allocate Buffer in PRF instantiation