TrimmedCursor must apply prefix to keys.