VPP-847: improve bihash template memory allocator performance