The security is a complicated process and is done in collaboration with CSIS, CBSA, RCMP and other agencies. When IRCC transmits the data to these agencies, the agencies will initiate the BGC. IRCC on its own accord does do a FOSS check, to know if the applicant was ever in violation of any Canadian immigration laws, and it will also, contact foreign governments if need be.
The reason for most delays is not getting info from foreign governments, or your name / date of birth /or a family member name matching someone suspicious on the system. Also, the travels, occupation, the country of origin, or of residency play a vital role in the BGC.
Unfortunately, there is no way to expedite the security. You can write to IRCC, but be prepared to get the canned response. A group of applicants from Pakistan are in the same boat, and it is frustrating to say the least. You should however, check your GCMS notes and see if your eligibility is cleared. If it is, then you can consider requesting your CSIS and CBSA report to see if they have concluded screening on your file. The CBSA report is better as it also contains the latest GCMS notes and if the security is concluded, it is not retracted, as compared to the GCMS notes issued by IRCC where the security is retracted.