Refactored interface hash calculation, no file needed and cached values