check_is_cachable function

Helper that checks whether a call is actually cachable