Optimizes the loading of the port-related properties for speed.
Fixes warnings.