Just because there are input keys specified, it doesn't necessarily mean the intermediary values are also few (or small). I'd remove this branch completely.