Maybe hoist the list_to_integer conversion out of the list comprehension.