Reduce running time / allocations of frame parser