Replace the hardcoded buffer size literal 4096 with a named constant BUFFER_SIZE to improve code readability and maintainability. The constant is defined at the module level and used in all buffer allocation sites.