[TASK] Use file_exists and classloader optimizations