Make it a constant and place it near CHUNK_SIZE. Also it makes sense to double it since beginning and ending of the file is always requested.