Change the localBuffer to static.