Speedup by removing unnecessary checks whilst processing PDB files.
Speedup by refactoring code calculating pdb_id.