Implement lazy loading for native classes