Optimize: pre size buffer