baidu: add key cache support
main: use key cache when upload