Refactor to properly handle async memcached and MySQL calls