Further optimizations to sessionproxy