Added cache stuff to proxy.c