Remove keepalive, better error handling, max cache purge