Implementing a memcaching decorator/router