Optimizations, added pragmas

- Added pragmas for speedup.
- Replaced MemoryBlock access with Ptr where possible.
- Added bcrypt comparison to PHP.