Optimize Buffers add Security