Remove unused code.
Add somewhat hacky code to make it recompile if the cached bytecode is unusable.