Can we avoid hard-coding "4096"? (It's used elsewhere in this code.)