#356626: Adding patch to improve performance and integration with memcache & aggressive caching. From m3avrck.