Pass cache as a parameter
Remove unnecessary import
Use cache