static int bufferSizeWithOverhead(final int bufferSize) {
        int fastIndexSize = ((bufferSize - HEADER_SIZE) / MAX_KEY_RATIO) * FastIndex.BYTES_PER_ENTRY;
        return bufferSize + fastIndexSize + ESTIMATED_FIXED_BUFFER_OVERHEAD;
    }