Lazy loading for Ruby and JRuby