The Encrypted traffic of many popular Web Applications may disclose highly sensitive data. Unique patterns may be identified in the encrypted traffic and an Eavesdropper can identify the actual application data. These are side-channel attacks. The existing solutions like random padding and packet rounding incur high cost. Hence we present a formal PPTP algorithm to efficiently reduce overhead cost incurred and also prevent side-channel attacks. This algorithm maps the similarity between the PPDP and PPTP problems and provide solution for the former.