[api] avoid too big calls into memcached

Rails.cache.read_multi hangs "forever" with 13000 packages, so divide this