eliminate wasteful AS::SafeBuffer allocation