Refactoring, memcache, pagination