Use arrays instead of dicts