Cache dynamic constant lookups in RubyMotion