REF: Create numba helper function for jitting + generating cache key
- [x] xref https://github.com/pandas-dev/pandas/pull/33388#discussion_r413967963
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
