refactored caching layer

cache_key's default value is already equal to None in function arguments. I guess this line makes the parameter obsolete.