new cache function
map test kwargs + cache