I'd have to know more about the layout of the box to come up with a specific arrangement. However, you might want to consider using push-in connector blocks (often called "Wago's", a brand name) instead of wire nuts. They are easier for large numbers of conductors. Depending on what devices you are using and how things are to be wired, you may also be able to make use of multi-conductor terminals on the devices instead of wire nuts (a GFCI receptacle is usually made handle 3 conductors per terminal, for example).
Nitpick: you have five cables, not five wires. You have, presumably, 15 wires (or "conductors").
Nitpick: you have five cables, not five wires. You have, presumably, 15 wires (or "conductors").