Minimize memory usage of mruby