Attempted to optimize username query.