Revert "Re-introduce local buffer for testing"

This reverts commit 782d608fc34155e6cad5f65de0cf265e321ed342.