Move caching of white_list_methods into the white_list_methods method itself.