Small range highlighting optimization