I like this! https://github.com/elasticsearch/elasticsearch/pull/4613 should use this as well once it's committed @dakrone