Switch from Map to List.
No need to save all players who are viewing the same inventory.
Check for maximum player distance every second.