Speedup of id to file lookup by storing id's in map

Previously, every fit file was opened multiple times only to determine its id. Now this id is stored in a map for faster access.