updates to caching_query.py to create key off params first