optimise message dispatch

Utilise method caching provided by jRuby.