Simplified INI file loading.

Uses a key ID to refer to a key, it's faster than using the name and can be cached outside the for-loop.