Cache methods on proto to prevent gc