Prevent map from taking too much ram