Bring back JRuby performance tweaks