Problem: Loading file type detection slows down startup. Solution: Move functions to an autoload script.