move lookup cache to separate file