added use of Flask-Cache extension; memoized the api user ip_allowed
method