Refactor API calls caching.

Also fix get_fit_from_input_post_get() not checking loadout
visibility.